package com.tengfei.main.course.domain.bo;

import com.tengfei.common.core.domain.BaseEntity;
import com.tengfei.common.core.validate.AddGroup;
import com.tengfei.common.core.validate.EditGroup;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotNull;

/**
 * 章节视频业务对象 cs_chapter_res
 *
 * @author tengfei
 * @date 2022-07-28
 */

@Data
@ApiModel("章节资源业务对象")
public class ChapterResBo {

    /**
     * 章节附件id
     */
    @ApiModelProperty(value = "id")
    @NotNull(message = "id不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 章节id
     */
    @ApiModelProperty(value = "章节id", required = true)
    @NotNull(message = "章节id不能为空", groups = { AddGroup.class,EditGroup.class })
    private Long chapterId;

    /**
     * 资源id
     */
    @ApiModelProperty(value = "资源id", required = true)
    @NotNull(message = "资源id不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long resId;



}
